From: Florian Müllner Date: Wed, 23 Sep 2015 17:10:16 +0000 (+0200) Subject: shell: Add default case to switch statements X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~1193 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=3e105747360b66612fd2e2d140da4dae5e842dfd;p=gnome-shell.git shell: Add default case to switch statements ... to shut up a compiler warning. --- diff --git a/src/shell-app-system.c b/src/shell-app-system.c index a6ddbf28e..9c3e8659a 100644 --- a/src/shell-app-system.c +++ b/src/shell-app-system.c @@ -348,6 +348,9 @@ _shell_app_system_notify_app_state_changed (ShellAppSystem *self, case SHELL_APP_STATE_STOPPED: g_hash_table_remove (self->priv->running_apps, app); break; + default: + g_warn_if_reached(); + break; } g_signal_emit (self, signals[APP_STATE_CHANGED], 0, app); } diff --git a/src/shell-app.c b/src/shell-app.c index 2fb6cfda2..4f1fe10f7 100644 --- a/src/shell-app.c +++ b/src/shell-app.c @@ -491,6 +491,9 @@ shell_app_activate_full (ShellApp *app, case SHELL_APP_STATE_RUNNING: shell_app_activate_window (app, NULL, timestamp); break; + default: + g_assert_not_reached(); + break; } } diff --git a/src/shell-perf-log.c b/src/shell-perf-log.c index 3c68a77d0..5cf0cbb6f 100644 --- a/src/shell-perf-log.c +++ b/src/shell-perf-log.c @@ -672,6 +672,9 @@ shell_perf_log_collect_statistics (ShellPerfLog *perf_log) statistic->recorded = TRUE; } break; + default: + g_warning ("Unsupported signature in event"); + break; } }